package com.mifengs.commonbase.di.module;

import android.content.Context;

import com.mifengs.commonbase.base.BaseApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/10/30.
 */

@Module
public class AppModule {
    private final BaseApplication mApplication;

    public AppModule(BaseApplication mApplication) {
        this.mApplication = mApplication;
    }

    @Provides
    @Singleton
    Context provideApplicationContext() {
        return mApplication.getApplicationContext();
    }

}
